package com.nuyoah.service;

import com.nuyoah.common.dto.UserDto;
import com.nuyoah.entity.Registration;
import com.nuyoah.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoming
 * @since 2024-03-26
 */
public interface UserService extends IService<User> {
    User getByUsername(String username);
    String getUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);

    User getByUsernameOrStudentId(String usernameOrStudentId);

    List<UserDto> getUserDto(List<Registration> registrations);

}
